<%@ page language="java" import="java.util.*" contentType="application/msword; charset=UTF-8" %>
<%@ include file="/static/include/taglib.jsp" %>
<%response.setHeader("Content-Disposition", "attachment; filename=" + java.net.URLEncoder.encode("dwkh.doc", "UTF-8"));%>
<!DOCTYPE html>
<html>
<head>
    <title>Title</title>
    <meta name="viewport" content="width=device-width"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <script src="${ctxStatic}/js/jquery-1.8.3.min.js?v=2.0" type="text/javascript"></script>
    <script src="${ctxStatic}/layui/layui.all.js" type="text/javascript"></script>
    <script src="${ctxStatic}/js/office/Blob.js" type="text/javascript"></script>
    <script src="${ctxStatic}/js/office/Blob.js" type="text/javascript"></script>
    <script src="${ctxStatic}/js/office/FileSaver.js" type="text/javascript"></script>
    <script src="${ctxStatic}/js/office/tableExport.js" type="text/javascript"></script>

    <style>


    </style>
</head>
<body>
<%--<div id="export">--%>
<%--<a data-type="doc" href="javascript:;">导出word</a>--%>
<%--</div>--%>


<div class="indexcontent">

    <h2>${title}</h2>
    <div class="selftable" id="selftable">

        <table id="tableData" cellspacing="0" cellpadding="0" border="1" class="layui-table" style="margin:0;">

            <thead>

            <tr style="text-align: center">
                <th colspan="${titleh.size()+4}">考评期间:${date}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 考评单位:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    &nbsp;&nbsp;&nbsp;&nbsp; 考评组别:
                </th>

            </tr>
            <tr>
                <th rowspan="2">序号</th>
                <th rowspan="2"  width="100px">被评单位</th>
                <th colspan="${titleh.size()}" style="text-align: center">单项得分</th>
                <th style="width: 100px" rowspan="2">总计</th>
                <th style="width: 100px" rowspan="2">排名</th>


            </tr>
            <tr>
                <c:forEach var="itemth" items="${titleh}" varStatus="idxStatus">
                    <th style="width: 85px">${itemth.uassingredients}<br>(${itemth.score}分)</th>
                </c:forEach>
            </tr>
            </thead>
            <tbody>
            <c:forEach var="item" items="${databody}" varStatus="idxStatus">
                <tr>
                    <td>${idxStatus.index+1}</td>
                    <td  width="100px">${item['orgname']}</td>
                    <c:forEach var="itembody" items="${titleh}">
                        <td>${item[itembody.assindexidcolum]}</td>
                    </c:forEach>
                    <td style="width: 100px" class="   orgSum orgSum_${item['orgid']}">${item['sumscore']}</td>
                    <td style="width: 100px" class="orgOrder_${item['orgid']}">${item['orderindex']}</td>
                </tr>
            </c:forEach>

            </tbody>
        </table>
    </div>
</div>
<div id="miaoshu" style="border: 1px solid white;
    color: white;">${remark}
</div>

</body>

</html>
